from cipher_utilities import *

# Ciphers
from shift import *
#from reverse_rotation import *
from substitution import *


plainText = "An aardvark abated his zoo time within"
print "Message = " + plainText

print "### Testing SHIFT cipher..."
key = 17
ct = shift_encrypt(plainText,key)
pt = shift_decrypt(ct,key)
print "    Key = " + str(key)
print "    Encrypted: " + ct
print "    Decrypted: " + pt

print "### Testing SUBSTITUION cipher..."
key = generate_substitution_key()
ct = substitution_encrypt(plainText,key)
pt = substitution_decrypt(ct,key)
print "    Key = " + key
print "    Encrypted: " + ct
print "    Decrypted: " + pt


